package com.hzj.controller;


import com.hzj.pojo.PlatformNotice;
import com.hzj.service.PlatformNoticeService;
import com.hzj.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/platformapi/hosp/platformNotice")
@CrossOrigin
public class PlatformNoticeController {

    @Autowired
    PlatformNoticeService ps;

        @RequestMapping("/plat/{page}/{limit}")
    public Result platList(@PathVariable Integer page, @PathVariable Integer limit){

        Result result = ps.platList(page, limit);

        return result;
    }

    @RequestMapping("/getPlat/{id}")
    public Result getPlat(@PathVariable Integer id){
        PlatformNotice plat = ps.getPlat(id);

        return Result.ok(plat);
    }



}
